#check the config file actually populated the required variables
# if it did not then we need to ask for them

echo "Checking Config"
if [ $(echo $FTPUSER | wc -c) -lt 2 ] ; then
    read -p "Username: " FTPUSER;
fi
echo "Username = $FTPUSER";
if [ $(echo $REMOTEDIR | wc -c) -lt 2 ] ; then
    read -p "Remote Directory: " REMOTEDIR;
fi
echo "Remote Directory = $REMOTEDIR";
if [ $(echo $LOCALDIR | wc -c) -lt 2 ] ; then
    read -p "Local Directory: " LOCALDIR;
fi
echo "Local Directory = $LOCALDIR";
if [ $(echo $FTPHOSTNAME | wc -c) -lt 2 ] ; then
    read -p "FTP Address: " FTPHOSTNAME;
fi
echo "FTP Address = $FTPHOSTNAME";
if [ $(echo $PASSWORD | wc -c) -lt 2 ] ; then
    read -s -p "Password: " PASSWORD;
fi
if [ $(echo $SALT | wc -c) -lt 2 ] ; then
    read -s -p "Salt: " SALT;
fi
